package cn.sightsnow.zh.repository;

import cn.sightsnow.zh.entity.Location;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;


public interface LocationRepository extends MongoRepository<Location, String> {
    Page<Location> findByTargetId(String targetId, Pageable pageable);
    Page<Location> findByRouteId(String routeId, Pageable pageable);

    Page<Location> findByTargetIdAndRouteId(String targetId, String routeId, Pageable pageable);
}
